'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    const { router, controller } = app;
    router.get('/api/lists', controller.home.List); //渲染
    router.get('/api/detail/lists', controller.home.detail) //详情页
    router.get('/api/search/lists', controller.home.search) //搜索
};